/**
 * 
 */
package org.cuatrovientos.rollthedice;

/**
 * @author daniel_ancin
 *
 */
public class Player {
	
	private int strength;
	private int speed;
	private int inteligence;
	private int lifepoints;
	
	public Player(){
			
		
	}
	

	/**
	 * player attacks
	 * @return damage points
	 */
	public int attack(){
		Dice dice = new Dice ();
		return strength + dice.roll();
	}
	
	/**
	 * player defensed
	 * @return
	 */
	public int defended (){
		Dice dice = new Dice ();
		return speed + dice.roll();	
	}

	/**
	 * @return the strength
	 */
	public int getStrength() {
		return strength;
	}

	/**
	 * @param strength the strength to set
	 */
	public void setStrength(int strength) {
		this.strength = strength;
	}

	/**
	 * @return the speed
	 */
	public int getSpeed() {
		return speed;
	}

	/**
	 * @param speed the speed to set
	 */
	public void setSpeed(int speed) {
		this.speed = speed;
	}

	/**
	 * @return the inteligence
	 */
	public int getInteligence() {
		return inteligence;
	}

	/**
	 * @param inteligence the inteligence to set
	 */
	public void setInteligence(int inteligence) {
		this.inteligence = inteligence;
	}

	/**
	 * @return the lifepoints
	 */
	public int getLifepoints() {
		return lifepoints;
	}

	/**
	 * @param lifepoints the lifepoints to set
	 */
	public void setLifepoints(int lifepoints) {
		this.lifepoints = lifepoints;
	}


}

